﻿package com.guavestudios.fcon.plugins.script {
	
	/**
	* ...
	* @author Default
	*/
	public class Script {
		
		private var _name:String;
		private var lines:Array;
		
		public function Script() {
			lines = [];
		}
		public function addLine(s:String):void
		{
			lines.push(s);
		}
		public function setScript(sc:*):void
		{
			if (sc is Array)
			{
				lines = sc;
			}
			else if (sc is String)
			{
				lines = String(sc).split("\r");
				//trace("(Script.setScript) "+lines.length);
			}
		}
		public function getLines():Array
		{
			return lines;
		}
		
		public function get name():String { return _name; }
		
		public function set name(value:String):void {
			_name = value;
		}
	}
	
}